package com.ruoyi.history.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据库信息管理对象 flyway_schema_history
 * 
 * @author yx
 * @date 2024-12-19
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class FlywaySchemaHistory
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long installedRank;

    /** 版本 */
    @Excel(name = "版本")
    private String version;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 脚本 */
    @Excel(name = "脚本")
    private String script;

    /** 检查值总和 */
    @Excel(name = "检查值总和")
    private Long checksum;

    /** 由谁创建 */
    @Excel(name = "由谁创建")
    private String installedBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installedOn;

    /** 执行时间 */
    @Excel(name = "执行时间")
    private Long executionTime;

    /** 是否成功 */
    @Excel(name = "是否成功")
    private Integer success;
}
